{% extends "base.phtml" %}


{% block content %}
<div class="box">
    <div class="box-header with-border">
        <h3 class="box-title">
            <button data-url="cleanlog" class="btn btn-primary btn-sm switch">清理过期日志</button>
        </h3>
        <div class="box-tools">
            <form method="get">
                <div class="input-group input-group-sm" style="width: 150px;">
                    <input type="text" name="name" class="form-control pull-right" placeholder="用户uid查找">
                    <div class="input-group-btn">
                        <button type="submit" class="btn btn-default"><i class="fa fa-search"></i></button>
                    </div>
                </div>
            </form>
        </div>
    </div>
    <div class="box-body">
        <table class="table table-bordered  table-hover">
            <tr>
                <th style="100px">用户UID</th>
                <th style="150px">操作时间</th>
                <th style="150px">来路IP</th>
                <th>操作内容</th>
            </tr>

            {%for k,v in list%}
            <tr>
                <td>{{v.uid}}</td>
                <td>{{date('Y-m-d H:i:s',v.dateline)}}</td>
                <td>{{v.ip}}</td>
                <td class="col-xs-9">{{v.log|nl2br}}</td>
            </tr>
            {%endfor%}
        </table>
    </div>

    <div class="box-footer clearfix">
        {{pageHtml}}
    </div>
</div>
{% endblock %}

{% block extjs %}

{% endblock %}